Repository navigation
Preserve literal template tokens in input filenames and folders - #813
Open
MORTEM3845 wants to merge 1 commit into
Open
MORTEM3845 wants to merge 1 commit into
MORTEM3845 wants to merge 1 commit into
Conversation
neosmith20
referenced
this pull request
in neosmith20/FileRecast
Nov 27, 2026
… fixes Conversions (ffmpeg) - Fix conversions stuck forever: stdout (-progress) and stderr are now both read asynchronously, so ffmpeg can never block on a full pipe (upstream #749 #780 #800, PR #809 #732). - Watchdog kills a frozen ffmpeg; cancel kills ffmpeg immediately. - Progress parsed from -progress output (works when the bitrate is unknown). - Failures detected from the exit code instead of "Error" substrings in the log. - MP4 drops subtitles it can't store, MKV keeps them; audio from video uses -vn. GPU encoding - H.264 / H.265 / AV1 codec choice for MP4 and MKV. - NVIDIA NVENC, AMD AMF and new Intel Quick Sync encoders for the three codecs. - New Automatic mode (probes which GPU encoder works) and automatic CPU fallback when GPU encoding fails (upstream PR #702). - Filters run on the CPU, so rotate/scale presets work with every GPU mode. Upstream PRs/issues merged or reimplemented - Animated WebP (#804), BMP/TIFF outputs (#775), ALAC (#562), AMR input (#811), progressive JPEG (#814), Markdown to PDF/DOCX via Word (#802), multipage TIFF (#812), SVG transparency (#808), PDF rangecheck crash (#806), path template tokens (#797/#813), Office conversions broken in 2.2 (#778 #779), context menu disappearing (#798). - Translations: Catalan (#707), Khmer (#761, junk text removed), Italian (#712, XML fixed), Chinese (#698 #763). Translations were not loaded at all (#787): fixed the post-build step that shipped empty satellite assemblies and added the probing path. Urdu file renamed so it loads. Other fixes - Never delete/move the input file when no output was generated; restore the _TEMP renamed input on failure. - Office: no dialogs, COM objects released, ExportAsFixedFormat fallback to SaveAs. - Atomic settings save; explorer extension reloads presets when they change. - Installer: NetOffice and Markdig libraries; unsigned builds when Installer.sign is absent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LMhX9UyqkxoopVuSF4tg9g
neosmith20
referenced
this pull request
in neosmith20/FileRecast
Nov 27, 2026
…mpeg update workflow - .github/workflows/build.yml: Release x64 build of the app, the shell extension and the installer with the .NET analyzers, build output checks (translations, installer contents), ffmpeg smoke tests, path template unit tests, installer uploaded as an artifact. - Tools/CodeCheck: cross-platform static checks (C# 7.3 syntax, project items, resources and translations, default presets, installer ids). - Tools/ffmpeg-smoke-test.ps1: runs the command lines generated by File Converter against the bundled ffmpeg and checks every GPU encoder option exists. - Tests/PathHelpers.Tests.ps1: output file name template tests (from upstream PR #813). - .github/workflows/update-ffmpeg.yml + Middleware/ffmpeg/ffmpeg.version: downloads the gyan.dev essentials build, verifies its SHA-256, runs the smoke tests, commits it and builds (targets 9.0.1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LMhX9UyqkxoopVuSF4tg9g
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Converting
99 (O) my file.jpgto PDF with the default(p)(f)template currently produces99 PDF my file.pdf. Sequential replacements re-interpret tokens introduced by the filename and parent-directory substitutions.Expand recognized tokens in a single pass over the original template, so inserted values remain literal. Explicit template tokens, aliases, directory indices, counters, date formatting, and unknown-token behavior are preserved.
Fixes #797.
Validation:
99 (O) my file.pdf.git diff --checkpassed.Run the checks after building the application, using a fresh Windows PowerShell process for each version:
The change contains only PathHelpers and its regression checks. Explorer shell registration was not changed or tested.